
FROM openjdk:8-jdk
MAINTAINER niubo
LABEL version="1.0"
LABEL description="po"


ARG JAVA_APP_JAR_NAME="spring_boot_demo-1.0-SNAPSHOT.jar"
WORKDIR /app
COPY target/${JAVA_APP_JAR_NAME}   /app/app.jar
EXPOSE 8099
USER root
#将 -agentlib:jdwp 的所有配置项合并为一个字符串,不能 "," 这样拼接
ENTRYPOINT ["java", "-jar", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "app.jar", "--server.port=8099"]
